package edu.gdkm.abstractdemo;

public class Teacher extends Person {
    public Teacher() {
    }

    public Teacher(String id, String name) {
        super(id, name);
    }

    public void say(){
        System.out.println("我是一名教师。");
        System.out.println("Id："+ this.getId() +"，姓名："+this.getName());
    }
}

